#include "filterwindow.h"
#include "ui_filterwindow.h"

FilterWindow::FilterWindow(QDialog *parent, MainApp *_app) : QDialog(parent), ui(new Ui::FilterWindow)
{
    ui->setupUi(this);
    m_MainApp = _app;
}

FilterWindow::~FilterWindow()
{
    delete ui;
}

void FilterWindow::on_pushButton_clicked()
{
    hide();

    if (ui->radioButton->isChecked())
        m_MainApp->SetWindowForFilters(0);
    else if (ui->radioButton_2->isChecked())
        m_MainApp->SetWindowForFilters(1);
    else
        m_MainApp->SetWindowForFilters(2);
}
